import java.util.Random;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        int randNum = random.nextInt(101);
        while (true) {
            System.out.println("请输入你要猜的数字：");
            int num = scan.nextInt();
            if (num < randNum) {
                System.out.println("猜小了");
            } else if (num == randNum) {
                System.out.println("猜中了");
                break;
            } else {
                System.out.println("猜大了");
            }

        }
    }
}

  /*  public static void main(String[] args) {
        System.out.println("请输入你得姓名：");
        Scanner scan = new Scanner(System.in);
        String name = scan.nextLine();
        System.out.println("姓名"+name);
    }
*/



   /* public static void main(String[] args) {
        int a = 100;
        while (a <= 200) {
            if (a % 3 == 0) {
                if (a % 4 == 0)
                    System.out.println(a);
             else {
                    a++;
                    continue;
                }
            }
a++;
        }
    }
}*/
